home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 013 / comspec.arc / COMSPEC.DOC next >
Encoding:
Text File  |  1984-06-24  |  1.0 KB  |  29 lines

  1. Page 10-23 of the DOS 2.0 manual clearly states the the COMSPEC parameter is
  2. used to locate the command processor (COMMAND.COM) when it needs to be reloaded.
  3. Although the SET command may be used to respecify the path, DOS does not seem to
  4. recognize it.
  5. .
  6. .This program if included in the AUTOEXEC.BAT file at boot time along with a SET
  7. command will cause DOS to reload COMMAND.COM from wherever you wish.  My
  8. AUTOEXEC.BAT file looks like this:
  9. .
  10. .     ECHO ** AUTOEXEC.BAT **
  11. .     COMSPEC
  12. .     IF ERRORLEVEL 0 GOTO CSGOOD
  13. .     ECHO COMSPEC ERROR
  14. .     GOTO CSBAD
  15. .     :CSGOOD
  16. .     SET COMSPEC=C:\COMMAND.COM
  17. .     :CSBAD
  18. .
  19. .Just remember to copy COMMAND.COM to the electronic disk in your AUTOEXEC.BAT
  20. file.
  21. .
  22. .If you do not have access to MASM then the file COMSPEC.COM may be modified
  23. using DEBUG to include your path name.
  24. .
  25. .  debug comspec.com
  26. .  e112 "C:\COMMAND.COM",0  (your path name here)
  27. .  e160  f  (path length in characters including terminating zero)
  28. .  w
  29.